﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Xml.Serialization;

namespace Hec.TextMining
{
    public class Cell
    {
        public double Frequency { get; set; }

        public Document Parent { get; set; }

        public bool PresencAbsence 
        {
            get
            {
                return Frequency > 0 ? true : false; 
            }
        }
        public double ni { get; set; }
        public double TF_IDF { get; set; }


        public Cell()       
        {
        }
        public Cell(int frequency, Document parent)
        {
            Frequency = frequency;
            Parent = parent;
        }

        public Cell(double tf_idf_weight, Document parent)
        {
            TF_IDF = tf_idf_weight;
            Parent = parent;
        }
    }
}
